
<script lang="ts" setup>
	const emits = defineEmits(["update:dialogVisible","determine"]);

    const props = defineProps({
        dialogVisible: {
            type: Boolean,
            required: true,
        },
        diclogText:{
            type: String,
            required: true,
        }
    });
    function closeModal() {
		emits("update:dialogVisible", false);
	}
    function determineModal(){
        emits("determine", false);
    }
</script>

<template>
      <el-dialog
        :model-value="props.dialogVisible"
        :close-on-click-modal="false"
        :show-close="false"
		width="500"
		draggable
    >
        <span>{{ props.diclogText }}</span>
        <template #footer>
        <div class="dialog-footer">
            <el-button @click="closeModal">取消</el-button>
            <el-button type="primary" @click="determineModal">
            确定
            </el-button>
        </div>
        </template>
    </el-dialog>
</template>